package com.gyms.manager;

import java.util.ArrayList;
import java.util.List;

/**
 * ltx on 2017/3/2 15:02
 * 搜索标签单例 将 场馆搜索标签 和 产品搜索标签保存在内存中
 */
public class TabManger {
    private static TabManger instance;
    private List<String> mProductTabs;
    private List<String> mGymTabs;

    public static TabManger getInstance() {
        if (instance == null) {
            instance = new TabManger();
        }
        return instance;
    }

    private TabManger() {
        mProductTabs=new ArrayList<>();
        mGymTabs=new ArrayList<>();
    }

    /**
     * 设置产品搜索标签list
     * @param mProductTabs 产品搜索标签list
     */
    public void setProductTabs(List<String> mProductTabs){
        this.mProductTabs=mProductTabs;
    }


    /**
     * 设置场馆搜索标签list
     * @param mGymTabs 场馆搜素标签list
     */
    public void setGymTabs(List<String> mGymTabs){
        this.mGymTabs=mGymTabs;
    }


    public List<String> getProductTabs() {
        return mProductTabs;
    }

    public List<String> getGymTabs() {
        return mGymTabs;
    }
}
